import { Logis } from 'logisticsInfo-model.js';

var logis = new Logis();

Page({
  data:{},
  onLoad: function (options) {
    var id = options.id;
    this._loadData(id);
  },
  _loadData: function (id, callback) {
    var that = this;
    logis.getLogis(id, (data) => {
      that.setData({
        data: data,
      });
    });
  },
  calling: function () {
    wx.makePhoneCall({
      phoneNumber: '12345678900', //此号码并非真实电话号码，仅用于测试  
      success: function () {
        console.log("拨打电话成功！")
      },
      fail: function () {
        console.log("拨打电话失败！")
      }
    })
  }
})